home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1985-10-11 | 1.4 KB | 34 lines |
- 1 'HALSETUP.BAS: Program by John J. Anderson (c) 1985 Creative Computing.
- 2 'Use this program to calculate all the custom alterations that will tailor
- 3 'the program HALLEYS.BAS to your locale. You must still know the LATITUDE
- 4 'and LONGITUDE of your location in order to use this program. For the
- 5 'LAT/LONG of your city, check HALLEYS.DOC or an atlas.
- 6 '
- 10 PRINT "Enter your LATITUDE: ";:INPUT X
- 20 PRINT "Enter your LONGITUDE: ";:INPUT Y
- 30 PRINT "Enter your TIME ZONE: "
- 40 PRINT "(1) Eastern"
- 50 PRINT "(2) Central"
- 60 PRINT "(3) Mountain"
- 70 PRINT "(4) Pacific":INPUT Z
- 80 IF Z=1 THEN Z=75
- 90 IF Z=2 THEN GOSUB 210
- 100 IF Z=3 THEN GOSUB 250
- 110 IF Z=4 THEN GOSUB 290
- 120 X=X/57.2958
- 130 PRINT "Replace the value .656059 with ";SIN(X);" in line 720."
- 140 PRINT "Replace the value .754710 with ";COS(X);" in line 720."
- 150 Y=(Y-Z)*0.0666666
- 160 PRINT "Replace the value -.066666 with the value ";Y;"in lines 770 and 780."
- 180 IF Y>0 THEN PRINT "Use a `+' sign to add the value to H in lines 770 and 780.":END
- 190 IF Y<0 THEN PRINT "Use a `-' sign to subtract the value from H in lines 770 and 780.":END
- 210 Z=90:PRINT "Replace the word EASTERN with CENTRAL in lines 820 and 870."
- 230 PRINT "Replace the value -1 with 0 in line 1320."
- 240 RETURN
- 250 Z=105:PRINT "Replace the word EASTERN with MOUNTAIN in lines 820 and 870."
- 270 PRINT "Replace the value -1 with 1 in line 1320."
- 280 RETURN
- 290 Z=120:PRINT "Replace the word EASTERN with PACIFIC in lines 820 and 870."
- 310 PRINT "Replace the value -1 with 2 in line 1320."
- 320 RETURN
-